<?php /* Smarty version Smarty-3.1.8, created on 2012-07-05 11:50:46
         compiled from "C:/xampp/htdocs/ecommerce/www/themes/adm/templates\banners\banners_cadastro.tpl" */ ?>
<?php /*%%SmartyHeaderCode:270614ff5a9c6edbbe8-80511356%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5345cea463d03509f7657735c2c6321007f558c6' => 
    array (
      0 => 'C:/xampp/htdocs/ecommerce/www/themes/adm/templates\\banners\\banners_cadastro.tpl',
      1 => 1337964601,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '270614ff5a9c6edbbe8-80511356',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'marcas' => 0,
    'marca' => 0,
    'posicoes' => 0,
    'posicao' => 0,
    'status' => 0,
    'k' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4ff5a9c7090849_34029846',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4ff5a9c7090849_34029846')) {function content_4ff5a9c7090849_34029846($_smarty_tpl) {?>
    <h2>Banners - Cadastro</h2>
    <form action="<?php echo @BASE_URL_ADM;?>
banners/cadastrodb/" method="post" name="frm_cadastro" id="frm_cadastro" enctype="multipart/form-data">
    <input type="hidden" name="banTip" id="banTip" value="RAN" />
	<table border="0" align="center" cellpadding="4" cellspacing="1" class="tb_cadastro">
	<tfoot>
		<tr>
			<td colspan="2">
				<input type="submit" name="submit" value="Salvar" style="float:left;" />
				<input type="button" name="voltar" value="Voltar" style="float:right;" onclick="javascript:history.back();" />
			</td>
		</tr>
	</tfoot>

	<tbody>
		<tr>
			<td class="label"><label for="marCod">Marca:</label></td>
			<td class="value" colspan="3">
                <select name="marCod" id="marCod">
    			     <option value="">-- Selecione --</option>
                     <?php  $_smarty_tpl->tpl_vars['marca'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['marca']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['marcas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['marca']->key => $_smarty_tpl->tpl_vars['marca']->value){
$_smarty_tpl->tpl_vars['marca']->_loop = true;
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['marca']->value['marCod'];?>
"><?php echo $_smarty_tpl->tpl_vars['marca']->value['marNom'];?>
</option>
                     <?php } ?>
                </select>
            </td>
		</tr>
		<tr>
			<td class="label"><label for="banLoc">Local:</label></td>
      		<td class="value">
                <select name="banLoc" id="banLoc">
                    <option value="">-- Selecione --</option>
                    <?php  $_smarty_tpl->tpl_vars['posicao'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['posicao']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['posicoes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['posicao']->key => $_smarty_tpl->tpl_vars['posicao']->value){
$_smarty_tpl->tpl_vars['posicao']->_loop = true;
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['posicao']->value['codPos'];?>
"><?php echo $_smarty_tpl->tpl_vars['posicao']->value['desPos'];?>
</option>
                    <?php } ?>
		      	</select>
            </td>
		</tr>
		<tr>
			<td class="label"><label for="banTar">Janela:</label></td>
			<td class="value"><select name="banTar" id="banTar">
			<option value="">-- Selecione --</option>
			<option value="_self">Abrir na mesma janela</option>
			<option value="_blank">Abrir em nova janela</option>
			</select></td>
		</tr>
		<tr>
			<td class="label"><label for="banTit">Nome:</label></td>
			<td class="value"><input name="banTit" type="text" id="banTit" size="80" value="" /></td>
		</tr>
		<tr>
			<td class="label"><label for="banUrl">URL:</label></td>
			<td class="value"><input name="banUrl" type="text" id="banUrl" size="80" value="" /></td>
		</tr>
		<tr>
			<td class="label"><label for="banMail">E-mail:</label></td>
			<td class="value"><input name="banMail" type="text" id="banMail" size="80" value="" /></td>
		</tr>
		<tr>
			<td class="label"><label for="banArq">Arquivo:</label></td>
			<td class="value"><input type="file" name="banArq" id="banArq" size="35" />

			</td>
		</tr>
		<tr>
			<td class="label"><label for="banSta">Status:</label></td>
			<td class="value">
				<select name="banSta" id="banSta">
                    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['status']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</option>
                    <?php } ?>
				</select>
			</td>
		</tr>
		</tbody>
		</table>
		</form><?php }} ?>